#ifndef PAINTER_H
#define PAINTER_H

#include <QWidget>
#include "binarytree.h"
#include "queue.h"
#include <QPainter>

namespace Ui {
class Painter;
}

class Painter : public QWidget
{
    Q_OBJECT

public:
    explicit Painter(BinaryTree tree, QWidget *parent = nullptr);
    ~Painter();

private:
    Ui::Painter *ui;
    BinaryTree tree;

    void paintEvent(QPaintEvent *event) override;
};

#endif // PAINTER_H
